import { createApp } from 'vue'
import App from './App.vue'
import './assets/css/main.css'

import router from '@/router'

import axios from 'axios'
import VueAxios from 'vue-axios'

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

//创建pinia实例
const pinia = createPinia()
//引用pinia持久化插件
pinia.use(piniaPluginPersistedstate)

let app = createApp(App)
app.use(router)
app.use(VueAxios, axios)
app.use(pinia)
app.mount('#app')